x = eval(input("请输入通话时长："))
y = eval(input("请输入短信条数："))
z = eval(input("请输入数据流量："))
if x > 250:
  d = ((x - 250))*0.25
if y > 100:
  e = (y - 100)*0.1
if z > 50:
  f = ((z - 50))*0.3
if x < 250:
  d = 0
if y < 100:
  e = 0
if z < 50:
  f = 0
q =58+d+e+f
print ("本月通话缴费：{}，短信缴费：{}，流量缴费：{}，共应缴费：{}".format(d,e,f,q))
